package com.music.checkpoints.common.amqp.consumber;

import com.music.checkpoints.common.amqp.event.AccessTokenEvent;
import com.music.checkpoints.common.service.ExamineeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AccessTokenConsumer implements AccessTokenEvent {
    @Autowired
    private ExamineeManager examineeManager;

    @Override
    public void saveAccessToken(String token) {
        examineeManager.saveToken(token);
    }
}
